/**
 * 
 */
package niuke.Wannafly;

import java.util.Scanner;

/**
 * @author zhongfang
 *
 */
public class test1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[] A = new int[N];
		int max = 0;
		for (int i = 0; i < A.length; i++) {
			A[i] = sc.nextInt();
			max = Math.max(max, A[i]);
		}
		while (M-- > 0) {
			int x = sc.nextInt();
			if (x < max) {
				System.out.println("YNOI is good OI!");
			} else {

			}
		}
		sc.close();
	}

}
